<?php
namespace app\admin\validate;
use think\Validate;

/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/11/20
 * Time: 15:43
 */
class User extends Validate
{
    protected $rule = [
        'username'  =>  'require',
        'password' =>  'require',
        'code' => 'require|captcha'
    ];

    protected $message = [
        'username.require'=>'请输入用户名',
        'password.require'=>'请输入密码',
        'code.require'=>'请输入验证码',
        'code.captcha'=>'验证码错误'
    ];

}